<?php

/**
 * Created by PhpStorm.
 * 招标订阅同步脚本
 * User: liuxiu
 * Date: 2021/12/16
 * Time: 15:38
 */

namespace console\controllers\procurement;


use business\procurement\services\SubsBiddingService;
use console\controllers\BaseIndexController;

class SubsBiddingIndexController extends BaseIndexController
{
    const MATERIAL_SOLR_CORE = 'subsbidding';

    /**
     * php yii procurement/subs-bidding-index/full
     * $isCreateIndex = 1 第一次初始化，创建索引
     *  全文索引
     */
    public function actionFull($isCreateIndex=0)
    {
        $subsBiddingService = new SubsBiddingService();
        $subsBiddingService->fullIndex($isCreateIndex);
    }

    /**
     * 已下线
     * php yii procurement/subs-bidding-index/increase
     *  增量索引
     */
    public function actionIncrease()
    {
        $subsBiddingService = new SubsBiddingService();
        $subsBiddingService->increaseIndex();
    }
}